package com.mac.EducationalResources;

import com.mac.pojo.EducationalResources;
import com.mac.service.EducationalResourcesService;
import org.junit.Test;

import java.util.ArrayList;
import java.util.Iterator;

/**
 * @author 张舜 独家创作
 * version 1.0
 */
public class test {
    EducationalResources ed = new EducationalResources();
    EducationalResourcesService eds = new EducationalResourcesService();
    /*
    * 测试查所有
    */
    @Test
    public void selectAllEducationalresources(){
       ArrayList<EducationalResources> e= eds.selectAllEducationalresources();
       Iterator<EducationalResources> iter = e.iterator();
       while(iter.hasNext()){
           System.out.println(iter.next());
       }

    }
    /*
    *单独查询
     */
    @Test
    public void selectOneByeducationalresourcesId(){
        System.out.println(eds.selectOneByeducationalresourcesId(1));
    }


}
